<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_follow_up".
 *
 * @property string $id
 * @property string $order_id
 * @property string $state
 * @property string $organ_intro
 * @property string $scene_reason
 * @property integer $next_count
 * @property integer $next_service_time
 * @property integer $create_time
 */
class OrderFollowUp extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order_follow_up';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['next_count', 'next_service_time', 'create_time'], 'integer'],
            [['id', 'order_id', 'state'], 'string', 'max' => 36],
            [['organ_intro', 'scene_reason'], 'string', 'max' => 1024],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'order_id' => 'Order ID',
            'state' => 'State',
            'organ_intro' => 'Organ Intro',
            'scene_reason' => 'Scene Reason',
            'next_count' => 'Next Count',
            'next_service_time' => 'Next Service Time',
            'create_time' => 'Create Time',
        ];
    }
}
